package com.secure.properties;

import com.secure.bean.ClientAppKey;
import com.secure.bean.UserKey;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.Map;

@Data
@ConfigurationProperties(prefix = "api.secure.client")
public class SecureClientProperties {

    /**
     * 服务消费端密钥配置
     * 用于消费端加签
     */
    private UserKey userKey;

    /**
     * 服务提供方密钥配置，Map<服务提供方服务名,ClientAppKey>
     * 用于消费端加密
     */
    private Map<String, ClientAppKey> appKeyConfig = new HashMap<>();
}
